package team.first.movieapiv3pro.movie;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.neo4j.ogm.annotation.EndNode;
import org.neo4j.ogm.annotation.Id;
import org.neo4j.ogm.annotation.Property;
import org.neo4j.ogm.annotation.StartNode;

/**
 * @Author: HAPPY
 * @Project_name: project
 * @Package_name: team.first.movieapiv3.domain
 * @Date: 2021/12/22 15:23
 * @Description:
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
// @RelationshipEntity(type = "DIRECTED")
public class DirectedRelation{
    @Id
    private Integer id;

    @Property
    private String actAs;

    @Property
    private Integer roleTypeId;

    @StartNode
    @JsonIgnore
    private Cast start;

    @EndNode
    @JsonIgnore
    private MovieNode end;
}
